#include "stdafx.h"
#include "Student.h"
using namespace std;

string Student::ToString()
{
	string result;
	stringstream out;
	out << "Name : " << this->name <<endl<< "Surname:"<< this->surname <<endl<< "Age:" << this->age;
	result = out.str();
	out.flush();
	return result;

}
Student::Student(string name, string surname, unsigned int age)
{
	cout << "Run  Student("<<name<<","<<surname<<","<<age<<") constructor ..."<< endl;
	cout.flush();
	Student::name = name;
	Student::surname = surname;
	Student::age = age;
}


Student::Student()
{
	cout << "Run default Student() constructor ..."<< endl;
	cout.flush();

}
Student::~Student()
{
	cout << "Run default ~Student() destructor ..."<< endl;
	cout.flush();
}
